<template>
	<div id='tmpl'>
		<mt-swipe :auto="1000" >
		  <mt-swipe-item v-for='item in list'>
		  		<img :src="item.img" alt="">
		  </mt-swipe-item>
<!-- 		  <mt-swipe-item v-for='item in list'> 先循环后绑定数据
		  	<img :src='item.img'>
		  </mt-swipe-item> -->
		</mt-swipe>
		<!-- 4.0 导入mui九宫格 -->
		<div class="mui-content">
		        <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/news/newslist">
		                    <!-- <span class="mui-icon mui-icon-home"></span> -->
		                    <img src="../../statics/imgs/3.png" alt="">
		                    <div class="mui-media-body">新闻资讯</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/photo/photolist">
		                    <img src="../../statics/imgs/2.png" alt=""><span class="mui-badge">5</span>
		                    <div class="mui-media-body">图片分享</div></router-link>
		            </li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/goods/goodslist">
		                    <img src="../../statics/imgs/4.png" alt="">
		                    <div class="mui-media-body">商品购买</div></router-link>
		            </li>
		        </ul> 
		</div>
		
	</div>
</template>
<script>
	import { Toast } from 'mint-ui';
	import silder from './subcom/silder.vue';

	export  default{
		components:{
			silder
		},
		data(){
			return{
				list:[{
					'img':'//img.alicdn.com/tfs/TB136OVAuuSBuNjy1XcXXcYjFXa-520-280.jpg_q90_.webp',
				},{
					'img':'https://img.alicdn.com/simba/img/TB1ioUAAeuSBuNjSsziSuvq8pXa.jpg',		
				},{
					'img':'https://img.alicdn.com/simba/img/TB1oWM_iJknBKNjSZKPSut6OFXa.jpg',		
				}]
			}
		}
		// created(){
		// 	this.getimgs();
		// },
		// methods:{
		// 	getimgs(){
		// 		// 1.0 确定url
		// 		var url="htpp://www.baidu.com";

		// 		// 2.0 调用$http.get()
		// 		this.$http.get(url).then(function(response){
		// 			var data=response.body;
		// 			//错误处理
		// 			if(data.status != 0){
		// 				Toast(data.message);
		// 				return;
		// 			}

		// 			//如果服务器返回的数据正常则赋值给List
		// 		    this.list=data.message;
		// 		})
		// 	}
		// }
	}
</script>
<style scoped>
	.mint-swipe{
		height: 200px;
		top: -5px;
	}
	.mint-swipe-items-wrap img{width: 100%}
	.mint-swipe-item{
		width:100%;
		height:200px
	}
	.mui-content>.mui-table-view:first-child{
		margin-top: 0px;
	}
	.mui-grid-view.mui-grid-9{
		background:#fff;
		border-top:#fff;
		border-left:none; 
	}
	.mui-grid-view.mui-grid-9 .mui-table-view-cell{
		border-right:none; 
  		border-bottom:none; 
  		background-color:none;
  		border-left:none;
	}
	.mui-grid-view.mui-grid-9[data-v-1fa06dd6]{
  		    background:none;
  		        border-top:none;
	}
	.mui-content{
		background:none;
	}
	.mui-content img{
		width: 60%;
		background:none;
	}
	#silder{
		height: 200px;
	}
</style>